﻿using System;
using System.Configuration;

namespace NDBGen.Configuration
{
    public class DataOutputElement : ProjectManagedEntryConfigurationElement
    {
        const String PROPNAME_GENERATOR = "generator";
        [ConfigurationProperty(PROPNAME_GENERATOR, IsKey = true, IsRequired = true)]
        public String Generator
        {
            get { return (String)this[PROPNAME_GENERATOR]; }
            set { this[PROPNAME_GENERATOR] = value; }
        }

        const String PROPNAME_FILES = "files";
        [ConfigurationCollection(typeof(DataOutputFileElement))]
        [ConfigurationProperty(PROPNAME_FILES, IsRequired = false)]
        public GenericElementCollection<DataOutputFileElement> Files
        {
            get { return (GenericElementCollection<DataOutputFileElement>)this[PROPNAME_FILES]; }
            set { this[PROPNAME_FILES] = value; }
        }
    }
}